package com.yn.common.request.driver;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;
import org.hibernate.validator.constraints.Length;

import javax.validation.constraints.NotBlank;
import javax.validation.constraints.NotNull;

@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
@ApiModel(value="陪护服务对象", description="添加陪护人员")
public class CareforRequest {

    @ApiModelProperty(value = "陪护项目", required = true)
    @NotNull(message = "陪护项目不能为空")
    @Length(max = 100, message = "陪护项目长度不能超过100")
    private String carefoProject;

    @ApiModelProperty(value = "图片列表展示缩率图", required = true)
    @NotNull(message = "上传图片不能为空")
    @Length(max = 100, message = "图片列表展示缩率图长度不能超过100")
    private String imageUrl;

    @ApiModelProperty(value = "陪护简介", required = true)
    @NotNull(message = "陪护简介不能为空")
    @Length(max = 400, message = "陪护简介长度不能超过400")
    private String carefoIntro;

    @ApiModelProperty(value = "陪护价格", required = true)
    @NotNull(message = "陪护价格不能为空")
    private Integer carefoPrice;

    @ApiModelProperty(value = "联系方式", required = true)
    @NotNull(message = "联系方式不能为空")
    private String carefoPhoneNumber;

    @ApiModelProperty(value = "司机真实姓名")
    @NotBlank(message = "司机真实姓名不能为空")
    @Length(max = 20, message = "车辆联系电话最多20个字符")
    private String realName;

    @ApiModelProperty(value = "司机身份证号")
    @NotBlank(message = "司机身份证号不能为空")
    @Length(max = 20, message = "车长身份证号最多20个字符")
    private String cardId;

    @ApiModelProperty(value = "司机性别")
    @NotBlank(message = "司机性别不能为空")
    private Integer sex;

    @ApiModelProperty(value = "备注", required = true)
    @Length(max = 4000, message = "备注长度不能超过4000")
    private String remark;
}
